﻿@model Seven.DataModel.ViewModels.MenuAbout.MenuPermissionModel

<script src="~/Scripts/views/Menu/MenuPermissionForm.js" type="text/javascript"></script>

<form id="MenuFunction-Form" name="MenuFunction-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">菜单权限信息</legend>
            @Html.HiddenFor(m => m.ID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        权限名称：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.Name)
                    </td>
                    <td class="TableLabel">
                        类型：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(m => m.Type)
                    </td>
                </tr>
                <tbody id="button">
                    <tr>
                        <td class="TableLabel">
                            按钮名称：
                        </td>
                        <td class="TableData">
                            @Html.TextBoxFor(model => model.ButtonName)
                        </td>
                        <td class="TableLabel">
                            按钮图标：
                        </td>
                        <td class="TableData">
                            @Html.TextBoxFor(model => model.IconCls)
                        </td>
                    </tr>
                    <tr>
                        <td class="TableLabel">
                            按钮事件：
                        </td>
                        <td class="TableData" colspan="3">
                            @Html.TextBoxFor(model => model.HandlerName, new { style = "width:300px;" })
                        </td>
                    </tr>
                </tbody>
                <tr>
                    <td class="TableLabel">
                        排序号：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(model => model.SortNumber)
                    </td>
                    <td class="TableLabel">
                        分组标记：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(m => m.GroupMark)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        所属菜单：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(model => model.MenuID)
                        @Model.MenuName
                    </td>
                    <td class="TableLabel">
                        是否显示：
                    </td>
                    <td class="TableData">
                        @Html.RadioButtonFor(m => m.IsShow, true)是
                        @Html.RadioButtonFor(m => m.IsShow, false)否
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        关联功能点：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextBoxFor(model => model.FunctionIDs)&nbsp;<a id="clear_LinkAction" href="javascript:void(0);" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'icon-reload',plain:true,content:'清空'"></a>
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(model => model.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.Menu.MenuPermissionForm.initPage("MenuFunction-Form", "@Model.MenuID", "@Seven.EntityBasic.PermissionType.按钮");
    });
</script>